package com.example.barcodeapp.persenter;

import com.example.barcodeapp.base.BasePersenter;
import com.example.barcodeapp.common.CommonSubscriber;
import com.example.barcodeapp.interfaces.own.IOwn;
import com.example.barcodeapp.model.HttpManager;
import com.example.barcodeapp.ui.huodong.Bean.HuoDongXiangQingBean;
import com.example.barcodeapp.ui.own.bean.HuoDongBean;
import com.example.barcodeapp.utils.RxUtils;

public class OnePresenterHuoDongXiangQing extends BasePersenter<IOwn.Viewkechenghuodongxiangqing> implements IOwn.Persenterkechenghuodongxiangqing {


    @Override
    public void getKeChengHuoDongxiangqing(int l_id,int uid) {
        addSubscribe(HttpManager.getInstance().getOwnTpApi().gethuodongxiangqing(l_id,uid)
                .compose(RxUtils.rxScheduler())
                .subscribeWith(new CommonSubscriber<HuoDongXiangQingBean>(mView) {
                    @Override
                    public void onNext(HuoDongXiangQingBean hanFuDaBean) {
                        mView.getKeChengHuoDongxiangqing(hanFuDaBean);
                    }
                }));
    }
}
